package com.itlong.cloud.app.service;

import com.itlong.cloud.POJO.PO.PropertyParkCouponPO;
import com.itlong.cloud.POJO.VO.app.AppGetCouponListVO;

import java.util.List;

/**
 * <desc>
 *      优惠券相关服务层接口
 * <desc/>
 *
 * @createDate 2018/11/08
 */
public interface IAppCouponService {

    /**
     * <desc>
     *      获取优惠券列表
     * </desc>
     *
     * @return 优惠券列表
     * @author wanghzi
     * @createDate 2018/11/09
     */
    List<AppGetCouponListVO> getCouponList(String phoneNo, String projectId, String redeemCode, String type) throws Exception;

    /**
     * <desc>
     *      获取优惠券信息 By 兑换码
     * </desc>
     *
     * @return 优惠券信息
     * @author wanghzi
     * @createDate 2018/11/09
     */
    PropertyParkCouponPO getCouponByRedeemCode(String redeemCode) throws Exception;

    /**
     * <desc>
     *      添加(兑换)优惠券
     * </desc>
     *
     * @return 添加的优惠券
     * @author wanghzi
     * @createDate 2018/11/09
     */
    AppGetCouponListVO addCoupons(PropertyParkCouponPO propertyParkCouponPO) throws Exception;
}
